This chapter describes how to use the Thin Server Function (TSF) configuration and operating commands and includes the following sections:
Use the following procedure to access the TSF configuration process.
* talk 6 Config>
After you enter the talk 6 command, the CONFIG prompt (Config>) displays on the terminal. If the prompt does not appear when you first enter configuration, press Return again.
To configure TSF, enter the commands at the Thin server config> prompt.
Table 62. TSF Configuration Command Summary
Command | Function |
---|---|
? (Help) | Displays all the commands available for this command level or lists the options for specific commands (if available). See "Getting Help". |
Add | Adds master file server--Remote File System (RFS) or Network File System (NFS). |
Delete | Deletes master file server (RFS or NFS). |
List | Lists the thin server configuration. |
Modify | Modifies master file server (RFS or NFS). |
Set | Sets the thin server parameters. |
Exit | Returns you to the previous command level. See "Exiting a Lower Level Environment". |
Use the add command to add a master file server configuration.
If you select nfs as the master-file-server type, the Thin Server will use NFS to communicate with the master file server and synchronize files and NSs can communicate with the Thin Server using TFTP or NFS. If you select rfs as the master-server type, then the Thin Server will use RFS to communicate with the master file server and synchronize files and NSs can communicate with the Thin Server using TFTP or RFS.
Syntax:
Valid Values: any valid IP address
Default Value: 0.0.0.0
Note: | This cannot be set to 0.0.0.0 if the set selection command specifies either secondary or automatic. |
Valid Values: any valid IP address
Default Value: 0.0.0.0
Range: 1 to 20
Default Value: 10
Valid Values: 5 - 10 seconds
Default Value: 5
Valid Values: 1 - 10
Default Value: 1
Valid Values: 512, 1024, 2048, 4096, 8192 (bytes)
Default Value: 8192
Valid Values: yes or no
Valid Values: a-z, A-Z, 0-9, ., _, --, /
Default Value: none
Valid Values:
The TSF will pre-load all files in the specified directory.
The TSF will not pre-load any files in the specified directory. Instead the TSF will load files from the directory and any of its sub-directories as needed.
Default Value: no
Valid Values: any valid IP address
Default Value: 0.0.0.0
Note: | This cannot be set to 0.0.0.0 if the set selection command specifies either secondary or automatic. |
Valid Values: any valid IP address
Default Value: 0.0.0.0
Range: 1 to 20
Default Value: 10
Valid Values: 5 - 10 seconds
Default Value: 5
Valid Values: 1 - 10
Default Value: 1
Valid Values: 512, 1024, 2048, 4096, 8192 (bytes)
Default Value: 8192
Valid Values: yes or no
Default Value: yes
Valid Values: a-z, A-Z, 0-9, ., _, --, /
Default Value: none
Valid Values:
The TSF will pre-load all files in the specified directory.
The TSF will not pre-load any files in the specified directory. Instead the TSF will load files from the directory and any of its sub-directories as needed.
Default Value: no
Valid Values: any valid IP address
Default Value: 0.0.0.0
Note: | This cannot be set to 0.0.0.0 if the set selection command specifies either secondary or automatic. |
Valid Values: any valid IP address
Default Value: 0.0.0.0
Range: 1 to 20
Default Value: 10
Valid Values: 5 - 10 seconds
Default Value: 5
Valid Values: 1 - 10
Default Value: 1
Valid Values: 512, 1024, 2048, 4096, 8192 (bytes)
Default Value: 8192
Valid Values: yes or no
Default Value: yes
Valid Values: a-z, A-Z, 0-9, ., _, --, /
Default Value: none
Valid Values:
The TSF will pre-load all files in the specified directory.
The TSF will not pre-load any files in the specified directory. Instead the TSF will load files from the directory and any of its sub-directories as needed.
Default Value: no
Valid Values: any valid IP address
Default Value: 0.0.0.0
Note: | This cannot be set to 0.0.0.0 if the set selection command specifies either secondary or automatic. |
Valid Values: any valid IP address
Default Value: 0.0.0.0
Range: 1 to 20
Default Value: 10
Valid Values: 5 - 10 seconds
Default Value: 5
Valid Values: 1 - 10
Default Value: 1
Valid Values: 512, 1024, 2048, 4096, 8192 (bytes)
Default Value: 8192
Valid Values: yes or no
Default Value: yes
Valid Values: a-z, A-Z, 0-9, ., _, --, /
Default Value: none
Valid Values:
The TSF will pre-load all files in the specified directory.
The TSF will not pre-load any files in the specified directory. Instead the TSF will load files from the directory and any of its sub-directories as needed.
Default Value: no
Valid Values: any valid IP address
Default Value: 0.0.0.0
Note: | This cannot be set to 0.0.0.0 if the set selection command specifies either secondary or automatic. |
Valid Values: any valid IP address
Default Value: 0.0.0.0
Range: 1 to 20
Default Value: 10
Valid Values: 5 - 10 seconds
Default Value: 5
Valid Values: 1 - 10
Default Value: 1
Valid Values: 512, 1024, 2048, 4096, 8192 (bytes)
Default Value: 8192
Valid Values: a-z, A-Z, 0-9, ., _, --, /
Default Value: /QIBM/ProdData/OS400/NetStationRmtController/LoadList.file
Example: For NFS
Thin server config> add master-file-server nfs-nt File Server IP address [0.0.0.0]? 10.22.55.94 Secondary File Server IP address [0.0.0.0]? 10.22.55.96 Master Server Refresh Retry Limit (1-20) [10]? TFTP Packet Timeout in seconds (5 - 10) ][5]? TFTP Max Retry Limit (1 - 10) [1]? TFTP Max Segment Size in bytes (valid values are 512, 1024, 2048, 4096, 8192) [8192]? Default Include Directories: Include Directory List Follows: Include all Subdirs? Directory Names -------- ----------------------------------- N /netstation/prodbase Y /netstation/prodbase/mods Y /netstation/prodbase/nls Y /netstation/prodbase/fonts Y /netstation/prodbase/java Y /netstation/prodbase/keyboards Y /netstation/prodbase/proms Y /netstation/prodbase/X11 Y /netstation/prodbase/configs Y /netstation/prodbase/SysDef Y /netstation/prodbase/zoneinfo Do you want additional Include Subdirectories (Y)es (N)o [N]? y Include Subdirectory [ ]? /netstation/prodbase/another Include all subdirectories under this directory (Y)es or (N)o [N]? Do you want additional Include Subdirectories (Y)es (N)o [N]?
Example: For RFS
Thin server config> add master-file-server rfs File Server IP address [0.0.0.0]? 192.9.225.21 Secondary File Server IP address [0.0.0.0]? 192.9.225.20 Master Server Refresh Retry Limit (1-20) [10]? TFTP Packet Timeout in seconds (5-10) [5]? TFTP Max Retry Limit (1-10) [1]? TFTP Max Segment Size in bytes (valid values are 512, 1024, 2048, 4096, 8192) ][8192]? Pre-Load File name [/QIBM/ProdData/OS400/NetStationRmtController/LoadList.file]?
Use the delete command to remove a master file server configuration.
Syntax:
Use the list command to display the TSF configuration.
Syntax:
Example: For NFS
Thin server config> list all Thin Server Feature configuration: Mode: ENABLED Master File Server Selection: PRIMARY Interval to refresh cache in day(s): 1 Time of day (military time) to refresh cache: 0100 Megabytes used for Thin Server RAM cache: 16 Use Hard File: YES Master Thin Server list: Server IP Address: 192.9.221.21 Secondary Server IP Address: 192.9.225.20 Server Protocol: NFS Master Server Refresh Retry Limit value: 10 TFTP Packet Timeout value: 5 TFTP Maximum Retry Limit value: 6 TFTP Maximum Segment Size value: 512 Initial directories setup for server type: NFS-AIX NFS Include Directory List follows: Include all subdirs? Directory Names -------- ----------------------------------------- N /usr/netstation Y /usr/netstation/mods Y /usr/netstation/nls Y /usr/netstation/fonts Y /usr/netstation/java Y /usr/netstation/keyboards Y /usr/netstation/proms Y /usr/netstation/X11 Y /usr/netstation/configs Y /usr/netstation/SysDef Y /usr/netstation/zoneinfo
Example: For RFS
Thin server config> list all Thin Server Feature configuration: Mode: DISCONNECTED Master File Server Selection: PRIMARY Interval to refresh cache in day(s): 1 Time of day (military time) to refresh cache: 0100 Megabytes used for Thin Server RAM cache: 16 Use Hard File: YES Master Thin Server list: Server IP Address: 192.9.221.21 Secondary Server IP Address: 192.9.225.20 Server Protocol: RFS Master Server Refresh Retry Limit value: 10 TFTP Packet Timeout value: 5 TFTP Maximum Retry Limit value: 1 TFTP Maximum Segment Size value: 8192 Protocol RFS List: Pre-load File: /QIBM/ProdData/OS400/NetStationRmtcontroller/Loadlist.file
Use the modify command to modify a master file server configuration.
Syntax:
Example: For NFS
Thin server config> modify master-file-server nfs File Server IP address [1.1.1.1]? Secondary File Server IP address [1.1.1.2]? Master Server Refresh Retry Limit (1 - 20) [10]? TFTP Packet timeout in seconds (5 - 10) [5]? TFTP Max retry limit value (1 - 10) [1]? TFTP Max Segment Size in bytes (valid values are 512, 1024, 2048, 4096, 8192) [8192]? Include directory /netstation/prodbase, (Y)es or (N)o [Y]? Include all subdirectories under this directory (Y)es or (N)o [N]? Include directory /netstation/prodbase/mods, (Y)es or (N)o [Y]? Include all subdirectories under this directory (Y)es or (N)o [Y]? Include directory /netstation/prodbase/nls, (Y)es or (N)o [Y]? Include all subdirectories under this directory (Y)es or (N)o [Y]? Include directory /netstation/prodbase/fonts, (Y)es or (N)o [Y]? Include all subdirectories under this directory (Y)es or (N)o [Y]? Include directory /netstation/prodbase/java, (Y)es or (N)o [Y]? Include all subdirectories under this directory (Y)es or (N)o [Y]? Include directory /netstation/prodbase/keyboards, (Y)es or (N)o [Y]? Include all subdirectories under this directory (Y)es or (N)o [Y]? Include directory /netstation/prodbase/proms, (Y)es or (N)o [Y]? Include all subdirectories under this directory (Y)es or (N)o [Y]? Include directory /netstation/prodbase/X11, (Y)es or (N)o [Y]? Include all subdirectories under this directory (Y)es or (N)o [Y]? Include directory /netstation/prodbase/configs, (Y)es or (N)o [Y]? Include all subdirectories under this directory (Y)es or (N)o [Y]? Include directory /netstation/prodbase/SysDef, (Y)es or (N)o [Y]? Include all subdirectories under this directory (Y)es or (N)o [Y]? Include directory /netstation/prodbase/zoneinfo, (Y)es or (N)o [Y]? Include all subdirectories under this directory (Y)es or (N)o [Y]? Do you want additional Include Subdirectories (Y)es (N)o [N]? Thin server config>
Example: For RFS
Thin server config> modify master-file-server rfs File Server IP address [192.9.225.21]? 192.9.225.23 Secondary File Server IP address [192.9.225.20]? 192.9.225.22 Master Server Refresh Retry Limit (1-20) [10]? 8 TFTP Packet Timeout in seconds (5-10) [5]? 7 TFTP Max Retry Limit (1-10) [1]? 15 TFTP Max Segment Size in bytes (valid values are 512, 1024, 2048, 4096, 8192) [8192]? 4096 Pre-Load File name [/QIBM/ProdData/OS400/NetStationRmtController/LoadList.file]?
Use the set command to set TSF configuration parameters.
Syntax:
Valid Values:
Default Value: disable
Valid Values:
Default Value: primary
Valid Values: 00 - 365
Default Value: 01
Valid Values: 0001 - 2400
Default Value: 0100
Valid Values: 8 - 64 Megabytes
Default Value: 16
Valid Values: yes or no
Default Value: yes
Example:
Thin server config> set mode passthru This server feature (TSF) is passthru Thin server config> set interval-pre-load-list Interval to refresh the Pre-Load list in days (00-365) [01]? 1 Thin server config> set time-to-refresh-pre-load-list Time of day to refresh cache in military time (0001-2400) [0100] 0800 Thin server config> set memory-cache Amount of memory in megabytes for Thin Server RAM cache (8-64MB) [8] Thin server config> set hard-file Use the Hard File (Y)ex N(o) [Y]? yes
Use the following procedure to access the TSF monitoring commands. This process gives you access to the TSF monitoring process.
* talk 5 +
After you enter the talk 5 command, the GWCON prompt (+) displays on the terminal. If the prompt does not appear when you first enter configuration, press Return again.
Example:
+ f tsf Thin-Server>
This section describes the TSF monitoring commands.
Table 63. TSF Monitoring Command Summary
Command | Function |
---|---|
? (Help) | Displays all the commands available for this command level or lists the options for specific commands (if available). See "Getting Help". |
Delete | Deletes a file from Thin Server feature file cache. |
Flush | Flushes the Thin Server feature file cache. |
List | Displays Thin Server settings and values. |
Refresh | Refreshes the cache. |
Reset | Resets counters. |
Restart | Restarts the Thin Server process. |
Set | Changes Thin Server feature settings. |
Exit | Returns you to the previous command level. See "Exiting a Lower Level Environment". |
Use the delete command to remove a file from the Thin Server feature file cache.
Syntax:
Valid Values:
Default Value: none
Example:
Thin-Server> delete Enter filename to delete from the File Cache: /ibm/prod/ns/5494.dat Are you sure that you want to delete this file? (Y/ [N]): y File successfully deleted
Use the flush command to flush the TSF memory and hard disk cache space. The flush command will erase all cached files. The Thin Server cache will be updated on the next refresh from the Master Server. Network Stations may experience delays until the refresh is completed.
Syntax:
Example:
Thin-Server> flush The FLUSH command will erase all cached files. The Thin Server cache will be updated on the next refresh from the Master Server. Network Stations may experience delays until the refresh is completed. Are you sure you really want to do this? (Y/ [N]: y All Thin Server cached files have been flushed
Use the list command to display TSF parameter settings.
Syntax:
Example:
Thin-Server> list cached-files Cached File Name File Size Time Stamp Flags Host File Name ------------ --------- ----------------- ----- ----------------- 00000026.DAT 2729 04/08/98 13:35:07 RYY /QIBM/ProdData/OS400/Netstat ionRmtController/Loadlist.file 00000002.DAT 2049220 09/16/97 08:55:39 RYU /QIBM/PRODDATA/NETWORKSTATIO N/KERNEL 10060 03/04/97 16:12:44 RY- /QIBM/PRODDATA/NETWORKSTATIO N/FONTS/PCF/MISC/7X14B.PCF List is Complete
The flags have the following meaning:
Common combinations of the last two flags (all three flags shown for clarity) are:
Example: For RFS
Thin-Server> list config Thin Server Configuration Thin Server feature mode is: Disconnected Thin Server feature state is: Active, all files up-to-date Interval to refresh Pre-Load List (#days): 1 Time of day (Military) to refresh Pre-Load List: 01:00:00 Memory (KB) currently using for RAM cache: 16384 Maximum memory (KB) configured for RAM cache: 16384 Currently using Hard File?: Yes Hard File storage defined for Thin Server: 817664 Hard File storage being used for Thin Server: 27328 Number of Files Cached: 82 Master Server IP address: 192.9.225.21 Secondary Master Server IP address: 192.9.225.20 Master Server Retry Limit: 10 Master Server Selection: primary TFTP Packet Timeout Value: 5 TFTP Max Retries: 1 TFTP Max Segment Size: 8192 Thin Server Sync Protocol: RFS Name of Pre-Load List file: /QIBM/ProdData/OS400/NetstationRmtController/Loadlist.file Thin Server>
Example: For NFS
Thin-Server> list config Thin Server Configuration Thin Server feature is: Enabled Thin Server Feature state is: Active, initializing file structure Interval to refresh Pre-Load List (#days): 1 Time of day (Military) to refresh Pre-Load List: 01:00:00 Memory (KB) currently using for RAM cache: 25600 Maximum memory (KB) configured for RAM cache: 25600 Currently using Hard File?: Yes Hard File storage defined for Thin Server: 915424 Hard File storage being used for Thin Server: 27328 Number of Files Cached: 82 Master Server IP address: 192.9.225.21 Secondary Master Server IP address: 192.9.225.20 Master Server Retry Limit: 10 Master Server Selection: primary TFTP Packet Timeout Value: 5 TFTP Max Retries: 1 TFTP Max Segment Size: 8192 Thin Server Sync Protocol: NFS Include Directory List Follows: Include all Subdirs? Directory Names -------- ----------------------------------- N /usr/netstation Y /usr/netstation/mods Y /usr/netstation/nls Y /usr/netstation/fonts Y /usr/netstation/java Y /usr/netstation/keyboards Y /usr/netstation/proms Y /usr/netstation/X11 Y /usr/netstation/configs Y /usr/netstation/SysDef Y /usr/netstation/zoneinfo Thin Server>
Example:
Thin-Server> list file-access-counters Disk Statistics/Counters: Number of files currently open: 20 Number of Total File Opens: 23 Number of Open Fails when File is Locked: 1 Number of Read misses - Version Mismatch: 4 Number of Read misses - File Not Present: 3 Number of Write misses - Hard File Full: 4
Example:
Thin-Server> list file-refresh-counters File Refresh Statistics/Counters Last Successful refresh Master Server IP address: 192.9.225.20 Current refresh Master Server IP address: 192.9.225.21 Number of Files Updated during last refresh: 0 Number of Update Failures during last refresh: 0 Number of Refreshes: 0 Number of Refresh Failures: 1 Number of Refreshes - Primary Master Server: 0 Number of Refresh Failures - Primary Server: 0 Number of Refreshes - Secondary Master Server: 0 Number of Refresh Failures - Secondary Server: 0 Number of Files Refreshed: 249 Date/Time of Last File Update: 02/17/1999 01:00:36 Date/Time of Last File Download: 02/16/1999 15:57:05 Thin Server>
Example:
Thin-Server> list pre-load-list <display of pre-load list raw file> List of Pre-Load List File is Complete
Example:
Thin-Server> list tftp-counters TFTP Server Statistics/Counters Relay to Master File Server: Available Number of Total TFTP Requests: 3 Number of Current TFTP Requests: 2 Number of Files Served: 22 Number of Files Served by Master Server: 22 Number of Files Served by Primary Master Server: 22 Number of Files Served by Secondary Master Server: 0 Thin Server>
Example: For RFS
Thin-Server> list ts-counters Thin Server Statistics/Counters Relay to Master File Server: Available Number of Total RFS Clients: 0 Number of Current RFS Clients: 0 Number of Files Served: 0 Number of Files Served by Master Server: 0 Number of NS Port Mapper socket accepts: 0 Number of NS Port Mapper sockets currently active/open: 0 Number of NS Server socket accepts: 0 Number of NS 8473 sockets currently active/open: 0 Number of NS Login sock accepts: 0 Number of NS 8476 sockets currently active/open: 0 Number of RFS writes to a Thin Server cached file: 0 Thin Server>
Example: For NFS
Thin-Server> list ts-counters Thin Server Statistics/Counters Number of NFS Server Reads: 13 Number of NFS Server Read Directories: 8 Number of Unsupported NFS Requests: 2 Number of total NFS Mounts: 22 Number of current NFS Mounts: 7 Number of total NFS clients: 15 Number of current NFS Clients: 4
Use the refresh command to force a refresh of the cache.
Syntax:
Example:
Thin-Server> refresh Force a refresh of the cache (Y/N) [N]? y Thin Server cache has been refreshed
Use the reset command to dynamically reset counters.
Syntax:
Example:
Thin-Server> reset all All Thin Server feature counters have been reset
Use the restart command to restart the TSF process.
Syntax:
Example:
Thin-Server> restart Restart Thin Server? (Y/ [N]): y Thin Server has been restarted
Use the set command to set the TSF caching mode.
Syntax:
Valid Values:
Example:
Thin-Server> set mode disconnected Thin Server caching is now disconnected
This section describes dynamic reconfiguration (DR) as it affects Talk 6 and Talk 5 commands.
TSF does not support the CONFIG (Talk 6) delete interface command.
The GWCON (Talk 5) activate interface command is not applicable for TSF. Activating an interface does not affect the Thin Server directly; however, it may impact the connectivity to the client or master file server.
The GWCON (Talk 5) reset interface command is not applicable for TSF. Resetting an interface does not affect the Thin Server directly; however, it may impact the connectivity to the client or master file server.
Thin Server feature supports the following TSF-specific GWCON (Talk 5) reset commands:
Modifying the type of master file server (rfs versus nfs) is not recommended. Doing so will affect the amount of memory available to be used as the file cache and the restart may fail if insufficient memory is available.
All TSF configuration changes are automatically activated except the
following:
Commands whose changes are not activated by the GWCON, feature tsf, restart command |
CONFIG, feature tsf, set memory-cache |
TSF supports the following GWCON commands that temporarily change the
operational state of the device. These changes are lost whenever the
device is reloaded, restarted, or you execute any dynamically reconfigurable
command.
Commands | ||
GWCON, feature tsf, set mode
|
The following table describes the TSF configuration commands that
cannot be dynamically changed. To activate these commands, you need to
reload or restart the device.
Commands | ||
CONFIG, feature tsf, set memory-cache
| ||
CONFIG, feature tsf, set mode
|